@import '../../var';
.catsBox {
    position: fixed;
    left: 30rpx;
    width: 35rpx;
    height: 33rpx;
    image {
        width: 100%;
        height: 100%;
    }
    .rot {
        position: absolute;
        top: -14rpx;
        right: -14rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28rpx;
        height: 28rpx;
        overflow: hidden;
        color: #fff;
        font-size: 22rpx;
        background-color: #f4504d;
        border-radius: 50%;
    }
}

.headerTitle {
    color: $title-color;
    font-weight: bold;
    font-size: 36rpx;
}

.logo {
    height: 60%;
}

.showNav {
    color: $title-color !important;
}

.swiper {
    height: calc(100% - 60rpx);
    overflow: hidden;
    .swiper-item {
        height: 100%;
    }
}

.need-auth {
    width: 100%;
    padding: 40% 0;
    color: $info-color;
    text-align: center;
}

page {
    width: 100%;
    height: 100%;
    background-color: $bgcolor-gray;
}

.container {
    width: 100%;
    height: 100%;
    .bannerBox {
        position: relative;
        width: 100%;
        image {
            width: 100%;
            height: 450rpx;
        }
    }
}

.fixedNav {
    position: fixed;
    top: 0;
    z-index: 99;
    width: 100%;
    padding-bottom: 5rpx;
    background-color: #fff;
}

.nav {
    width: 690rpx;
    height: 50rpx;
    margin-left: 30rpx;
    line-height: 48rpx;
    white-space: nowrap;
}

.nav-item {
    display: inline-block;
    height: 48rpx;
    margin-right: 20rpx;
    padding: 0rpx 20rpx;
    color: $title-color;
    font-size: 24rpx;
    text-align: center;
    font-weight: 600;
    .itemBox {
        position: relative;
        .item-title {
            position: relative;
            z-index: 2;
            padding: 0rpx 10rpx;
        }
        .item-content-acitve {
            background-color: $primary-color;
        }
        .item-content {
            position: absolute;
            bottom: 8rpx;
            width: 100%;
            height: 15rpx;
            border-radius: 50rpx;
        }
    }
}

// .nav-item.active {
//   font-weight: 700;
// }
.tab-box {
    box-sizing: border-box;
    height: 100%;
}

.blockBox {
    height: 30rpx;
    margin-top: 28rpx;
}

.typeBox {
    min-height: 120rpx;
}

.tab-container {
    position: absolute;
    top: 360rpx;
    width: 100%;
    .navCard {
        display: flex;
        flex-wrap: wrap;
        width: 690rpx;
        margin-bottom: 30rpx;
        margin-left: 30rpx;
        overflow: hidden;
        background: rgba(255, 255, 255, 1);
        border-radius: 20rpx;
        .navs {
            display: flex;
            width: 100%;
            height: 88rpx;
            &-item {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                height: 100%;
                color: $info-color;
                font-weight: 600;
                font-size: 28rpx;
                border-bottom: 1rpx solid #e5e5e5;
                &:first-child {
                    border-right: 1rpx solid #e5e5e5;
                }
                &.active {
                    color: $title-color;
                    border-bottom: 0rpx;
                }
            }
        }
        .navBox {
            display: flex;
            flex-wrap: wrap;
            width: 690rpx;
            padding: 8rpx 0 30rpx;
            overflow: hidden;
            background: rgba(255, 255, 255, 1);
            .nav-items {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                width: 20%;
                max-height: 110rpx;
                margin-top: 24rpx;
                .navImg {
                    width: 40rpx;
                    height: 40rpx;
                    image {
                        width: 100%;
                        height: 100%;
                    }
                }
                .navtitle {
                    display: flex;
                    justify-content: center;
                    width: 100%;
                    margin-top: 8rpx;
                    .titleBox {
                        position: relative;
                        .title {
                            position: relative;
                            z-index: 2;
                            padding: 0rpx 8rpx;
                            color: $info-color;
                            font-size: 20rpx;
                        }
                        .activeNav {
                            position: absolute;
                            bottom: 5rpx;
                            z-index: 1;
                            width: 100%;
                            height: 12rpx;
                            background-color: $primary-color;
                            border-radius: 50rpx;
                        }
                    }
                }
            }
        }
        .navBottom {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 88rpx;
            border-top: 1rpx solid #e5e5e5;
            &-item {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                color: $text-color;
                font-size: 20rpx;
                border-left: 1rpx solid #e5e5e5;
                image {
                    width: 28rpx;
                    height: 33rpx;
                    margin-right: 10rpx;
                }
                &:first-child {
                    border-left: 0rpx;
                }
            }
        }
        .navBoxs {
            display: flex;
            flex-wrap: wrap;
            width: 100%;
            padding: 15rpx;
            &-item {
                width: 100rpx;
                height: 100rpx;
                margin: 5rpx;
                image {
                    width: 100%;
                    height: 100%;
                }
                .more {
                    width: 100%;
                    height: 100%;
                    color: #707070;
                    font-size: 24rpx;
                    line-height: 100rpx;
                    text-align: center;
                    background-color: #f5f5f5;
                }
            }
            .active {
                overflow: hidden;
                border: 2rpx solid $primary-color;
                border-radius: 5rpx;
            }
        }
    }
    &.hidden {
        display: none;
    }
    &.show {
        display: block;
    }
    .container {
        &.commodities {
            margin-top: 15rpx;
            padding: 0rpx 30rpx 200rpx 30rpx;
            .productList {
                display: inline-block;
                width: 330rpx;
                margin-bottom: 15rpx;
                overflow: hidden;
                background: rgba(255, 255, 255, 1);
                border-radius: 20rpx;
                &.border {
                    height: 524rpx;
                    border: 1rpx solid $border-color;
                }
            }
            .productList:nth-child(2n) {
                margin-left: 28rpx;
            }
        }
    }
}

.typeTitle {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    height: 60rpx;
    color: $text-color;
    font-size: 28rpx;
    .typeLine {
        width: 71rpx;
        height: 2rpx;
        background-color: $info-color;
    }
    text {
        margin: 0 16rpx;
    }
}